Error "Access Denied" in call "Update a User" from Users

Hi, I am testing the Users APIs, but in the request call ā€œUpdate a Userā€ I am receiving the error response ā€œ403 Access deniedā€. I am using the procedure as mentioned in the documentation.
kindly guide me to resolve the error. The curl of the call is:

curl --location --request PUT ā€˜https://api.pagerduty.com/users/P78BG7M’
–header ā€˜Authorization: Token token***********************’
–header ā€˜Accept: application/vnd.pagerduty+json;version=2’
–header ā€˜Content-Type: application/json’
–data-raw ā€˜{
ā€œuserā€: {
ā€œnameā€: ā€œ",
ā€œemailā€: "
",
ā€œtime_zoneā€: "
",
ā€œcolorā€: ā€œpurpleā€,
ā€œavatar_urlā€: "
*************************ā€,
ā€œbilledā€: true,
ā€œroleā€: ā€œuserā€,
ā€œdescriptionā€: ā€œmanagerā€,
ā€œinvitation_sentā€: false,
ā€œjob_titleā€: ā€œmanagerā€
}
}’

Hello,

An access denied error would indicate a permissions issue.

To help guide you on this, we would need account-sensitive details from you which shouldn’t be shared in this space. Please can you email support@pagerduty.com regarding this.

Regards,

1 Like